#cmake version
CMAKE_MINIMUM_REQUIRED(VERSION 3.10)

#define project name
PROJECT(mpmmeshing)

find_package(Eigen3 REQUIRED)

SET(CMAKE_CXX_FLAGS "-std=c++17")

SET(CMAKE_BUILD_TYPE "Release")
SET(CMAKE_CXX_FLAGS_DEBUG "$ENV{CXXFLAGS} -O0 -Wall -g2 -ggdb")  
SET(CMAKE_CXX_FLAGS_RELEASE "$ENV{CXXFLAGS} -O3 -Wall")  

# SET(INC_DIR ./inc)
# SET(LINK_DIR ./lib)

# INCLUDE_DIRECTORIES(${INC_DIR})  #包含的头文件目录
# LINK_DIRECTORIES(${LINK_DIR}) #链接静态库目录


INCLUDE_DIRECTORIES(${EIGEN3_INCLUDE_DIR})  #包含的头文件目录
# AUX_SOURCE_DIRECTORY(./src SRC_DIR) #源文件目录

# ADD_EXECUTABLE(${PROJECT_NAME} ${SRC_DIR})
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})
ADD_LIBRARY(${PROJECT_NAME} STATIC help.cpp Mesh3D.cpp Render.cpp)

# TARGET_LINK_LIBRARIES(${PROJECT_NAME} a)
# TARGET_LINK_LIBRARIES(${PROJECT_NAME} b)



